const express = require('express')
const articleCtrl = require('../controller/article')
const auth=require('../middleware/auth')
const articleValidator=require('../validator/article')
const router=express.Router()



// 创建文章.先校验token，再文章格式，再具体业务
router.post('/',auth,articleValidator.createArticle,articleCtrl.createArticle)

module.exports = router